package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.EnableDict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: scm_invoice
 * @Author: jeecg-boot
 * @Date: 2021-11-03
 * @Version: V1.0
 */
@Data
@TableName("scm_invoice")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "scm_invoice对象", description = "scm_invoice")
public class ScmInvoice implements Serializable, EnableDict {
    private static final long serialVersionUID = 1L;

    /**
     * 发票代码
     */
    @Excel(name = "发票代码", width = 15)
    @ApiModelProperty(value = "发票代码")
    private String invoiceCode;
    /**
     * 发票号码
     */
    @Excel(name = "发票号码", width = 15)
    @ApiModelProperty(value = "发票号码")
    private String invoiceNo;
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**开票日期*/
	@Excel(name = "开票日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开票日期")
    private Date invoiceSetDate;
	/**机器编码*/
	@Excel(name = "机器编码", width = 15)
    @ApiModelProperty(value = "机器编码")
    private String machineNumber;
	/**货物或应税劳务、服务名称*/
	@Excel(name = "货物或应税劳务、服务名称", width = 15)
    @ApiModelProperty(value = "货物或应税劳务、服务名称")
    private String nameOfGts;
	/**发票金额*/
	@Excel(name = "发票金额", width = 15)
    @ApiModelProperty(value = "发票金额")
    private BigDecimal invoiceAmount;
	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private Double taxRate;
	/**税额*/
	@Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private BigDecimal taxAmount;
	/**购买方名称*/
	@Excel(name = "购买方名称", width = 15)
    @ApiModelProperty(value = "购买方名称")
    private String buyer;
	/**购买方纳税人标识号*/
	@Excel(name = "购买方纳税人标识号", width = 15)
    @ApiModelProperty(value = "购买方纳税人标识号")
    private String buyerId;
	/**购买方电话地址*/
	@Excel(name = "购买方电话地址", width = 15)
    @ApiModelProperty(value = "购买方电话地址")
    private String buyerAddressPhone;
	/**购买方开户行账号*/
	@Excel(name = "购买方开户行账号", width = 15)
    @ApiModelProperty(value = "购买方开户行账号")
    private String buyerBankAccount;
	/**销售方名称*/
	@Excel(name = "销售方名称", width = 15)
    @ApiModelProperty(value = "销售方名称")
    private String seller;
	/**销售方纳税人标识号*/
	@Excel(name = "销售方纳税人标识号", width = 15)
    @ApiModelProperty(value = "销售方纳税人标识号")
    private String sellerId;
	/**销售方电话地址*/
	@Excel(name = "销售方电话地址", width = 15)
    @ApiModelProperty(value = "销售方电话地址")
    private String sellerAddressPhone;
	/**销售方开户行账号*/
	@Excel(name = "销售方开户行账号", width = 15)
    @ApiModelProperty(value = "销售方开户行账号")
    private String sellerBankAccount;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String note;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private Integer state;
    /**
     * 发票附件
     */
    @Excel(name = "发票附件", width = 15)
    @ApiModelProperty(value = "发票附件")
    private String invoiceAttachment;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建机构
     */
    @Excel(name = "创建机构", width = 15)
    @ApiModelProperty(value = "创建机构")
    private java.lang.String createOrg;

    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
    /**
     * 修改人
     */
    @Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改机构
     */
    @Excel(name = "修改机构", width = 15)
    @ApiModelProperty(value = "修改机构")
    private String updateOrg;
}
